package com.ityueqiangu.system.service.impl;

import com.ityueqiangu.system.domain.SysUser;
import com.ityueqiangu.system.service.ISysUserService;
import com.ityueqiangu.system.service.IWebSocketService;
import com.ityueqiangu.webSocket.WebSockets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yanghc
 */
@Service
public class WebSocketService implements IWebSocketService {

    @Autowired
    private ISysUserService sysUserService;

    /**
     * @param id
     * @param user
     * @return
     */
    @Override
    public int sndmsg(Long id, SysUser user) {
        WebSockets webSockets = new WebSockets();
        webSockets.broadcast("12343");
        return 0;
    }
}
